package com.company.exam11;

import java.io.Serializable;

/**
 * 第11题 自定义一个对象，并对该对象进行序列化与反序列化。（10分）
 */
public class Person implements Serializable {
	String name;
	int age;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Person(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}
}
